package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.turtle.config.TurtleModel;
import com.yanqu.road.entity.activity.turtle.config.TurtleTemplate;
import com.yanqu.road.entity.activity.turtle.data.TurtleNotice;
import com.yanqu.road.entity.activity.turtle.data.TurtleUserData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

/**
 * @Author : Cxp
 * @Time : 2024-09-13
 * @Description : 乌龟对对碰-业务类
 */

public class TurtleBusiness {
    public static List<TurtleNotice> getNoticeDataList(int activityId) {
        return DaoHelper.getTurtleNoticeDaoImpl().getTurtleNoticeData(activityId);
    }

    public static boolean addNoticeDataList(List<TurtleNotice> list) {
        return DaoHelper.getTurtleNoticeDaoImpl().addNoticeList(list);
    }

    public static Map<Integer, TurtleTemplate> getTemplateConfig(int activityId) {
        return DaoHelper.getTurtleConfigDaoImpl().getTemplateConfig(activityId);
    }

    public static Map<Integer, TurtleModel> getModelConfig(int activityId) {
        return DaoHelper.getTurtleConfigDaoImpl().getModelConfig(activityId);
    }

    public TurtleUserData getTurtleUserData(int activityId, long userId) {
        return DaoHelper.getTurtleUserDataDaoImpl().getTurtleUserData(activityId, userId);
    }

    public boolean addUserData(TurtleUserData userData) {
        return DaoHelper.getTurtleUserDataDaoImpl().add(userData);
    }

    public boolean updateUserData(TurtleUserData userData) {
        return DaoHelper.getTurtleUserDataDaoImpl().update(userData);
    }
}
